/**这个类为一个公共类*/

import { AxiosResponse } from "axios";
import { SERVICE_CONFIG } from "../_base";
import { SYSTEM_CONFIG } from "@/config/system";
import service from "@/api";

/**
 * 获取菜单信息
 */
export function getMenu(): Promise<AxiosResponse<any>> {
  const params = { appId: SYSTEM_CONFIG.APP_ID, format: "json", allData: true };
  let url = SERVICE_CONFIG.ORG + "/org/ManagerService/getMenu";
  return service.get(url, { params });
}
